﻿<%@ Page Language="c#" CodeBehind="CATManage.aspx.cs" AutoEventWireup="false" Inherits="CIS.CATManage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <title>CATManage</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <style type="text/css">
        @import url( css/ppt.css );
    </style>
    <script language="javascript" type="text/javascript">
        function window.onload() {
            __attachEvents();
        }
        function __attachEvents() {
            //lbDelete
            var oEles = document.getElementsByTagName('INPUT');
            for (var i = 0; i < oEles.length; i++) {
                var ele = oEles.item(i);
                if (ele.type == 'image' && ele.id.indexOf('lbDelete') != -1) {
                    ele.attachEvent("onclick", __confirmDelete);
                }
            }
        }
        function __confirmDelete() {
            if (confirm("确定删除该CAT?\r\n")) {
                return true;
            } else {
                return false;
            }
        }
    </script>
</head>
<body>
    <form id="Form1" method="post" runat="server">
    <table cellpadding="0" id="table1">
        <tr>
            <td>
                <table cellpadding="0" id="table2">
                    <tr>
                        <td>
                            <!--公告栏表格开始-->
                            <table cellpadding="0" id="table2">
                                <tr>
                                    <td>
                                        <asp:Image ID="iCATGroupManage" ImageUrl="images/title_CATGroupManage.jpg" runat="server">
                                        </asp:Image>
                                    </td>
                                    <td>
                                    </td>
                                    <td>
                                        <img src="images/title_right.jpg" alt="" />
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3">
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3">
                                        <table cellpadding="0" id="table1">
                                            <tr>
                                                <td>
                                                    <img src="images/table_c1_r1.jpg" alt="" />
                                                </td>
                                                <td>
                                                </td>
                                                <td>
                                                </td>
                                                <td>
                                                    <img src="images/table_c3_r1.jpg" alt="" />
                                                </td>
                                                <td>
                                                    <img src="images/table_c4_r1.jpg" alt="" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <img src="images/table_c1_r3.jpg" alt="" />
                                                </td>
                                                <td colspan="3">
                                                    <!--此处填写内容-->
                                                    <asp:Label ID="lbArea" runat="server"></asp:Label><asp:DropDownList ID="AreaDdl"
                                                        runat="server" AutoPostBack="True">
                                                    </asp:DropDownList>
                                                    <br>
                                                    <asp:DataList ID="CATDL" runat="server" CellPadding="0" CellSpacing="0" BorderWidth="0"
                                                        DataKeyField="CATGroupId">
                                                        <HeaderTemplate>
                                                            <tr>
                                                                <td>
                                                                    &nbsp;
                                                                </td>
                                                                <td>
                                                                    <%#GetStrInSetFile("lbName")%>
                                                                </td>
                                                                <td>
                                                                    <%#GetStrInSetFile("lbDescription")%>
                                                                </td>
                                                                <td>
                                                                    <%#GetStrInSetFile("lbOperate")%>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    &nbsp;
                                                                </td>
                                                                <td>
                                                                    <asp:TextBox ID="txtNewName" runat="server"></asp:TextBox>
                                                                </td>
                                                                <td>
                                                                    <asp:TextBox ID="txtNewDescription" runat="server"></asp:TextBox>
                                                                </td>
                                                                <td>
                                                                    <asp:Button ID="btnNew" runat="server" Text='<%#GetStrInSetFile("btnNew")%>' CommandName="new">
                                                                    </asp:Button>
                                                                </td>
                                                            </tr>
                                                        </HeaderTemplate>
                                                        <ItemTemplate>
                                                            <tr nowrap>
                                                                <td nowrap>
                                                                    &nbsp;
                                                                </td>
                                                                <td title="">
                                                                    &nbsp;
                                                                    <%#DataBinder.Eval(Container.DataItem,"CATGroupName")%>
                                                                </td>
                                                                <td nowrap>
                                                                    &nbsp;
                                                                    <%#DataBinder.Eval(Container.DataItem,"CATGroupDescr")%>
                                                                </td>
                                                                <td>
                                                                    &nbsp;
                                                                    <asp:LinkButton ID="lbModify" runat="server" CommandName='Edit'>
																				<%#GetStrInSetFile("lbEdit")%>
                                                                    </asp:LinkButton>
                                                                    &nbsp;
                                                                    <asp:ImageButton ID="lbDelete" runat="server" CommandName="Delete" ImageUrl="images/icon_delete.gif">
                                                                    </asp:ImageButton>
                                                                </td>
                                                            </tr>
                                                        </ItemTemplate>
                                                        <EditItemTemplate>
                                                            <tr>
                                                                <td>
                                                                    &nbsp;
                                                                </td>
                                                                <td>
                                                                    <asp:TextBox ID="txtName" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"CATGroupName")%>'>
                                                                    </asp:TextBox>
                                                                </td>
                                                                <td>
                                                                    <asp:TextBox ID="txtDescription" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"CATGroupDescr")%>'>
                                                                    </asp:TextBox>
                                                                </td>
                                                                <td nowrap>
                                                                    <asp:LinkButton ID="btnUpdate" runat="server" Text='<%#GetStrInSetFile("lbUpdate")%>'
                                                                        CommandName="Update">
                                                                    </asp:LinkButton>
                                                                    &nbsp;
                                                                    <asp:LinkButton ID="btnCancel" runat="server" Text='<%#GetStrInSetFile("lbCancel")%>'
                                                                        CommandName="Cancel">
                                                                    </asp:LinkButton>
                                                                </td>
                                                            </tr>
                                                        </EditItemTemplate>
                                                    </asp:DataList>
                                                    <!--此处填写内容-->
                                                </td>
                                                <td>
                                                    <img src="images/table_c4_r2.jpg" alt="" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <img src="images/table_c1_r4.jpg" alt="" />
                                                </td>
                                                <td>
                                                    <img src="images/table_c2_r4.jpg" alt="" />
                                                </td>
                                                <td>
                                                </td>
                                                <td>
                                                </td>
                                                <td>
                                                    <img src="images/table_c4_r4.jpg" alt="" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                            <!--公告栏表格结束-->
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
